cmake_minimum_required(VERSION 3.0.2)
project(hello_world)
find_package(catkin REQUIRED COMPONENTS roscpp)
catkin_package()
include_directories(
include
${catkin_INCLUDE_DIRS}
)

# add_executable(${PROJECT_NAME}_node src/hello_world_node.cpp)

# target_link_libraries(${PROJECT_NAME}_node
#   ${catkin_LIBRARIES}
# )

add_executable(${PROJECT_NAME}_talker src/pub_eg.cpp)
add_executable(${PROJECT_NAME}_listener src/sub_eg.cpp)


target_link_libraries(${PROJECT_NAME}_listener ${catkin_LIBRARIES})
target_link_libraries(${PROJECT_NAME}_talker ${catkin_LIBRARIES})
